import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EPetLifeStyle
    
    export  class EPetLifeStyle
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EPetLifeStyle
        {
            return new EPetLifeStyle(arg1);
        }

        public static __read(arg1: SerializeStream): EPetLifeStyle
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 101) 
            {
                throw new MarshalException();
            }
            return EPetLifeStyle.convert(loc1);
        }

        public static /* const */_EPetLifeStyleLife: int=1;

        public static /* const */_EPetLifeStyleMana: int=2;

        public static /* const */_EPetLifeStylePower: int=3;

        public static /* const */_EPetLifeStyleAgile: int=4;

        public static /* const */_EPetLifeStyleHabitus: int=5;

        public static /* const */_EPetLifeStyleBrains: int=6;

        public static /* const */_EPetLifeStyleSpiritual: int=7;

        public static /* const */_EPetLifeStylePhysicalAttack: int=8;

        public static /* const */_EPetLifeStyleMagicAttack: int=9;

        public static /* const */_EPetLifeStylePhysicalDefense: int=10;

        public static /* const */_EPetLifeStyleMagicDefense: int=11;

        public static /* const */_EPetLifeStylePhysicalCrit: int=12;

        public static /* const */_EPetLifeStyleMagicCrit: int=13;

        public static /* const */_EPetLifeStyleHit: int=14;

        public static /* const */_EPetLifeStyleJouk: int=15;

        public static /* const */_EPetLifeStylePass: int=16;

        public static /* const */_EPetLifeStyleBlock: int=17;

        public static /* const */_EPetLifeStyleSpeededUp: int=18;

        public static /* const */_EPetLifeStyleToughness: int=19;

        public static /* const */_EPetLifeStyleRelief: int=20;

        public static /* const */_EPetLifeStyleRed: int=21;

        public static /* const */_EPetLifeStyleExp: int=100;

        public /* var */__value: int;
    }
